import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/process/${url}`, ...arg)
/**
 * 站内信
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
    // 获取分页
    processRoutePage(data) {
        return request('pageRoute', data, 'get')
    },
    // 删除
    processRouteDelete(data) {
        return request('deleteRoute', data)
    },
    // 提交表单
    processRouteAdd(data) {
        return request('addRoute', data)
    },
    // 修改表单
    processRouteUpdate(data) {
        return request('editRoute', data)
    },
    // 文件上传
    processRouteUpload(data) {
        return request('uploadQiniu', data)
    },
    //绑定工艺下拉框
    bindProcess(data) {
        return request('BindSelectAsync', data, 'get')
    }
    // // 获取凭证
    // UploadToken(data) {
    //     return request('uploadToken', data)
    // },

}
